#include <iostream>
#include <vector>
#include "vector.h"
using namespace std;

namespace bit
{
	void test1()
	{
		vector<int> v1;
		v1.push_back(1);
		v1.push_back(2);
		v1.push_back(3);
		v1.push_back(4);
		v1.push_back(5);
		vector<int> v2(v1);
		print_vector(v1);
		print_vector(v2);
	}
	void test2()
	{
		vector<string> v1(5,"1111111");
		vector<string> v2(2,"");
		v2 = v1;
		print_vector(v1);
		print_vector(v2);
		vector<int> v3(2,3);
		print_vector(v3);
		vector<string> v4;
		v4.push_back("1111111");
		v4.push_back("1111111");
		v4.push_back("1111111");
		v4.push_back("1111111");
		v4.push_back("1111111");
		print_vector(v4);
	}
	void test3()
	{
		vector<int> v1;
		v1.push_back(1);
		v1.push_back(2);
		v1.push_back(3);
		v1.push_back(4);
		v1.push_back(5);
		v1.insert(v1.begin(), 0);
		v1.erase(v1.begin() + 5);
		print_vector(v1);
		v1.pop_back();
		print_vector(v1);

	}

}
int main(void)
{

	/*vector<int>array;

	array.push_back(100);

	array.push_back(300);

	array.push_back(300);

	array.push_back(300);

	array.push_back(300);

	array.push_back(500);

	vector<int>::iterator itor;

	for (itor = array.begin(); itor != array.end(); itor++)

	{

		if (*itor == 300)

		{

			itor = array.erase(itor);

		}

	}

	for (itor = array.begin(); itor != array.end(); itor++)

	{

		cout << *itor << " ";

	}*/
	//bit::test1();
	bit::test3();

	return 0;

}